<?php

namespace app\index\model;
use think\Model;

class Admin extends Model
{
    protected $autoWriteTimestamp = true;
    protected $table = 'admin';
    protected $createTime = 'admin_create_time';
    protected $updateTime = 'admin_update_time';

    public function setAdminPwdAttr($value){
        return md5($value);
    }

}